home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15702 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can a function return a array of pointers? a.s.a.p.
  5. Date: 21 Apr 1996 02:52:14 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4lcpfe$sl2@solutions.solon.com>
  8. References: <4lalvn$536@badger.wmin.ac.uk> <4lc29kINNdkd@keats.ugrad.cs.ubc.ca>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <4lc29kINNdkd@keats.ugrad.cs.ubc.ca>,
  13. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  14. >    static char readcodes(int arg)[3]
  15. >    { /* bogus function definition for returning an array of 3 char */ }
  16.  
  17. >As above. And no compiler for the C language will take it.
  18.  
  19. Not entirely true; a diagnostic must be emitted, but the compiler is allowed
  20. to accept the code if it wants to.
  21.  
  22. Thus the complete irrelevance of the name "conforming" as applied to code;
  23. it means only that at least one compiler accepts the code, and the code
  24. may contain syntax errors, as long as at least one conforming compiler
  25. accepts it.  (Of course, to be conforming, it must emit at least
  26. a warning.)
  27.  
  28. -s
  29. -- 
  30. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  31. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  32. Unsolicited email is not welcome, and will be billed for at consulting rates.
  33. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  34.